list_x = [1, 3, 4, 5, 6, 7]


def square(x):
    return x * x


for x in list_x:
    square(x)

# map实现上面的结果

list_y = map(square, list_x)
print(list(list_y))

